home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CommentPane$10.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.5 KB  |  59 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.UI;
  4. import com.extensibility.xml.BaseDeclaration;
  5. import com.extensibility.xml.DeclarationChangeEvent;
  6. import com.extensibility.xml.ProcessingInstruction;
  7. import com.extensibility.xml.SchemaIntf;
  8.  
  9. class CommentPane$10 implements SchemaDocListener {
  10.    // $FF: synthetic field
  11.    final CommentPane this$0;
  12.  
  13.    public void flavorChanged(SchemaDocEvent var1) {
  14.       this.this$0.getPreviewBtn().updateText();
  15.       if (this.this$0.doc.getSchema().getFlavorName().equals(SchemaIntf.SOX2_FLAVOR_NAME)) {
  16.          this.this$0.tabPane.setTitleAt(1, UI.getString("tab.author.label.sox"));
  17.          this.this$0.tabPane.setTitleAt(2, UI.getString("tab.usage.label.sox"));
  18.       } else {
  19.          this.this$0.tabPane.setTitleAt(1, UI.getString("tab.author.label"));
  20.          this.this$0.tabPane.setTitleAt(2, UI.getString("tab.usage.label"));
  21.       }
  22.  
  23.    }
  24.  
  25.    public void declarationListReordered(SchemaDocEvent var1) {
  26.    }
  27.  
  28.    public void declarationChanged(SchemaDocEvent var1, DeclarationChangeEvent var2) {
  29.       if (this.this$0.getActiveDecl() == var2.getDeclaration()) {
  30.          this.this$0.updateTexts(true);
  31.       }
  32.  
  33.    }
  34.  
  35.    public void declarationListChanged(SchemaDocEvent var1) {
  36.       if (var1.getDeclaration() == null) {
  37.          this.this$0.setActiveDecl((BaseDeclaration)null);
  38.       } else if (var1.getDeclaration() instanceof ProcessingInstruction) {
  39.          ProcessingInstruction var2 = (ProcessingInstruction)var1.getDeclaration();
  40.          if (var2.getTarget().equals("XA_VERSION_HISTORY") && this.this$0.getShowMode() == 2 && this.this$0.tabPane.getSelectedIndex() == 3) {
  41.             this.this$0.updateTexts(false);
  42.          }
  43.  
  44.       }
  45.    }
  46.  
  47.    public void declarationRemoved(SchemaDocEvent var1) {
  48.       this.declarationListChanged(var1);
  49.    }
  50.  
  51.    public void declarationInserted(SchemaDocEvent var1) {
  52.       this.declarationListChanged(var1);
  53.    }
  54.  
  55.    CommentPane$10(CommentPane var1) {
  56.       this.this$0 = var1;
  57.    }
  58. }
  59.